const joi = require('@hapi/joi')

const name = joi.string().required()

const alias = joi.string().required()

const id = joi.number().integer().min(1).required()

const Id = joi.number().integer().min(1).required()
exports.addCateRuler = {
    body: {
        name,
        alias
    }
}

exports.deleteCateByIdRuler = exports.getCateByIdRuler = {
    params: {
        id
    }
}

exports.updateCateByIdRuler = {
    body: {
        Id,
        name,
        alias
    }
}